/*****************************************************************************
 *   Copyright 2005 Tim A Wang
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 *
 ****************************************************************************/
package com.jb.web.bean.inspector;


public class PropertyInfo 
 {
    private String field;
    private String propertyName;
    private String propertyType;
    private String table;

    public PropertyInfo(String pName, Class pType) {
        propertyType = pType.getName();
        propertyName = pName;
    }

    public PropertyInfo(String pName, String pClassName)
        throws ClassNotFoundException {
        propertyType = pClassName;
        propertyName = pName;
    }

    public void setField(String pField) {
        this.field = pField;
    }

    public String getField() {
        return field;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    public String getPropertyName() {
        return propertyName;
    }

    public void setPropertyType(String propertyType) {
        this.propertyType = propertyType;
    }

    public String getPropertyType() {
        return propertyType;
    }

    public void setTable(String pTable) {
        this.table = pTable;
    }

    public String getTable() {
        return table;
    }
}
